<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%@page import="java.util.List"%>
<%@page import="com.portal.home_ctrl.master_model_help"%>
<%@page import="com.portal.home_ctrl.make_model_by_id"%>
<%@page import="helper.TecPaginator"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

List<Object> list=(List<Object>)session.getAttribute("editmodellist");
TecPaginator tp=new TecPaginator(request,list,20,"startWith");
make_model_by_id make_id=new make_model_by_id();
while(tp.isNext()){
master_model_help lb=(master_model_help)tp.next();
make_id.setId(lb.getId());
make_id.setYear_start(lb.getYear_start());
make_id.setYear_end(lb.getYear_end());
make_id.setMake(lb.getMake());
make_id.setModel(lb.getModel());
make_id.setVersion(lb.getVersion());
make_id.setSegment(lb.getSegment());
make_id.setBody_style(lb.getBody_style());
make_id.setCategory(lb.getCategory());
make_id.setTransmission_type(lb.getTransmission_type());
make_id.setLower_price(lb.getLower_price());
make_id.setFuel_type(lb.getFuel_type());
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'edit_make_model_master.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script src="Scripts/mfcrm_js.js" type="text/javascript"></script>
    <script src="Scripts/box.js" type="text/javascript"></script>
    <link href="Styles/box.css" rel="stylesheet" type="text/css" />
    <link href="Styles/mfcrm_styles.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function refreshParent() {
  window.opener.location.href = window.opener.location.href;
}

</script>
  </head>
  
  <body>
   <s:form action="edit_update_model">
    
    <br>
    			  <table cellpadding="3" cellspacing="1" border="0" bgcolor="#f5f5f5" style="width: 100%">
						    <tbody>
						 <tr>
					       	   <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: large; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="right" colspan="4">Make_Model</td>
					       	   <td nowrap="nowrap" bgcolor="#530053" style="font-family: &#39;Courier New&#39;, Courier, monospace; font-size: large; color: #FFFFFF; font-style: normal; text-transform: capitalize" align="left" colspan="4">Master</td>
						      </tr> 
                          
						      <tr bgcolor="#ffffff">
						         <td class="style1">ID: <span style="color:Red;font-size:Medium;display:none;">*</span>
                                    
                                  </td>
                                  
						        <td class="style1">
                                    <input name="id" type="text"  id="id" value="<%=make_id.getId() %>" title="Please Press Tab" readonly="readonly">
                                  </td>
						        <td class="style1">Year Start:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                 <td class="style2">
                                 <input name="ed_year_start" type="text" id="ed_year_start" tabindex="1" value="<%=make_id.getYear_start()%>"></td>
						        <td class="style5">Year End:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="ed_year_end" type="text" id="ed_year_end" tabindex="2" value="<%=make_id.getYear_end() %>">		       
                               </td>
                              
                                                         
						        <td class="style1">Make:<span style="color:Red;font-size:Medium;display:none;" >*</span>
                                  </td>
                                  
                                <td nowrap="nowrap" class="style1"><input name="ed_make" type="text" id="ed_make" tabindex="3" value="<%=make_id.getMake()%>"></td>
                               
					           </tr>
     				          <tr bgcolor="#ffffff">
     				       
						        <td class="style1">Model:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
						         <input name="ed_model" type="text" id="ed_model" tabindex="4" value="<%=make_id.getModel()%>">
						          </td>
						        <td class="style1">Version:<span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1"><input name="ed_version" type="text" id="ed_version" tabindex="5" value="<%=make_id.getVersion()%>"></td>
						        <td class="style5">Segment:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="ed_segment" type="text"  id="ed_segment" title="Please Press Tab" value="<%=make_id.getSegment() %>" tabindex="6">
                                  </td>
                               
                                  
                                <td class="style5">Body Style:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="ed_body_style" type="text"  id="ed_body_style" title="Please Press Tab" value="<%=make_id.getBody_style() %>" tabindex="7">
                                  </td>
					          </tr>
					          
					           <tr bgcolor="#ffffff">
     				       
						        <td class="style1">Category:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
						         <input name="ed_category" type="text" id="ed_category" tabindex="8" value="<%=make_id.getCategory() %>">
						          </td>
						        <td class="style1">Transmission:<span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1"><input name="ed_transmission_type" type="text" id="ed_transmission_type" tabindex="9" value="<%=make_id.getTransmission_type() %>"></td>
						        <td class="style5">Lower Price<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="ed_lower_price" type="text" id="ed_lower_price" tabindex="10" value="<%=make_id.getLower_price() %>"> </td>
                               
                                  
                                <td class="style5">Upper Price<span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"><input name="ed_upper_price" type="text" id="ed_upper_price" tabindex="11" value="<%=make_id.getUpper_price() %>"> </td>
					          </tr>
					              
					           <tr bgcolor="#ffffff">
     				       
						        <td class="style1">Fuel Type:<span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
						        <td valign="top" nowrap="nowrap" class="style1">
						         <input name="ed_fuel_type" type="text" id="ed_fuel_type" tabindex="12" value="<%=make_id.getFuel_type() %>">
						          </td>
						        <td class="style1"><span style="color:Red;font-size:Medium;visibility:hidden;">*</span>
                                  </td>
                                 <td nowrap="nowrap" class="style1"></td>
						        <td class="style5"><span style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"> </td>
                               
                                  
                                <td class="style5"><span  style="color:Red;font-size:Medium;display:none;">*</span>
                                  </td>
                                  
						        <td class="style2"> </td>
					          </tr>
					           <tr bgcolor="#ffffff">
						        <td colspan="9">
                                    <div id="ValidationSummary1" style="color:Red;display:none;">

</div>
                                  </td>
						        <td class="style8">&nbsp;</td>
					          </tr>
						      <tr valign="middle">
						        <td class="orgbg" colspan="10" align="center">
                                    <input type="submit" name="Button1" value="CONFIRM"  id="Button1" tabindex="66" class="btn" onclick="refreshParent();">
						          &nbsp;
                                    <input type="reset" name="Button2" value="RESET" id="Button2" tabindex="67" class="btn">
                                    </td>
					          </tr>
  
</tbody>
</table>
</s:form>


  </body>
</html>
